const utility = require('./index');

// 测试密码加密函数
const encoded = utility.passwordEncoder('123456');
console.log('encoded', encoded);

// 测试日期格式化
const dateString = utility.dateFormat('2020/3/2 12:3:4');
console.log('dateString', dateString);

// 测试打乱数组
const randomArr = utility.randomArr([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
console.log(randomArr);

// 测试字符串是不是回文字符串
const isPalindrome = utility.isPalindrome('123121');
console.log('isPalindrome', isPalindrome);

// 格式化手机号
console.log('formatPhoneNumber', utility.formatPhoneNumber('13811065680'));
